package com.example.anliku.mapper;

import com.example.anliku.entity.Knowledge;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface KnowledgeMapper {
    int deleteByPrimaryKey(Integer knowledgeId);

    int insert(Knowledge record);

    int insertSelective(Knowledge record);

    Knowledge selectByPrimaryKey(Integer knowledgeId);

    int updateByPrimaryKeySelective(Knowledge record);

    int updateByPrimaryKey(Knowledge record);

    int updateBatch(List<Knowledge> list);

    int batchInsert(@Param("list") List<Knowledge> list);

    List<Knowledge> selectAll();

    List<String> selectKnowledgeNameByKnowledgeId(@Param("knowledgeId") Integer knowledgeId);

    List<Knowledge> selectAllByKnowledgeName(@Param("knowledgeName")String knowledgeName);


}